import { GET } from '../../request';
import { Res } from '../../common';

/**
 * 获取预约上门服务分类
 * @param params
 * @returns
 */
export const getAppointmentList = (params: any): Promise<Res<any>> => {
  return GET('/api/store_appoint_services', params);
};

/**
 * 某分类下的服务列表
 */
export const getServiceList = (params: any): Promise<Res<any>> => {
  return GET('/api/store_services_list', params);
};

/**
 * 获取预约上门服务分类
 * @param params
 * @returns
 */
export const getServiceCateList = (): Promise<Res<any>> => {
  return GET('/api/store_services_category');
};

/**
 * 服务详情
 */
export const getServiceDetail = (params: any): Promise<Res<any>> => {
  return GET('/api/detail_goodsorservices', params);
};
